﻿@model MSWeb.Models.EdycjaLekcjiInitVM

@{
    ViewBag.Title = "Edycja lekcji";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    if (@TempData["Error"] != null)
    {
        <div class="alert alert-danger" role="alert">
            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <span class="sr-only">Błąd:</span>
            @TempData["Error"]
        </div>
    }

    <div class="form-horizontal">
        <h4>Wybierz datę dla której wyświetlić lekcje </h4>

        <div class="form-group">
            <label for="name" class="col-lg-4">
                Data Lekcji:
            </label>
            <div class="col-lg-8">
                @Html.EditorFor(model => model.DataLekcji, new { htmlAttributes = new { @class = "form-control" } })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Szukaj" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<script>
    /*
    window.onerror = function(errorMsg) {
        $('#console').html($('#console').html()+'<br>'+errorMsg)
    }*/
    $('#dataNowa').datetimepicker({
        dayOfWeekStart: 1,
        lang: 'en',
        disabledDates: ['1986/01/08', '1986/01/09', '1986/01/10'],
        startDate: '2015/01/05'
    });
</script>